<template>
  <div class="wrap">
    <header>
      <span @click="go">&lt;</span>
      <h3>热门楼盘</h3>
    </header>
    <main>1</main>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {
    go() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="scss">
.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 50px;
  background: rgb(72, 72, 225);
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  text-align: center;
  span {
    padding-left: 5%;
  }
  h3 {
    padding-left: 35%;
  }
}
main {
  flex: 1;
  overflow-y: scroll;
}
</style>